<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GuildServiceWelfare: guildservicewelfare/logic/guild_red_envelope_logic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GuildServiceWelfare
   &#160;<span id="projectnumber">0.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_274ff8699ab1c77a54a16d6d34d775e6.html">guildservicewelfare</a></li><li class="navelem"><a class="el" href="dir_7599d47b88b5a78bf75b9b962cf1b98a.html">logic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">guild_red_envelope_logic.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="guild__red__envelope__logic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;error/error_code.h&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;guild/guild.h&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">struct </span>GuildRedEnvelopeBrief;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">struct </span>GuildModuleRedEnvelope;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">struct </span>GuildRedEnvelopeGrabber;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>guild_service {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_module_red_envelope_logic.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html">GuildModuleRedEnvelopeLogic</a> {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_module_red_envelope_logic.html#af019b0c1493c1114cd335c3193a4100e">   40</a></span>&#160;   <span class="keyword">using</span> <a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html#af019b0c1493c1114cd335c3193a4100e">red_envelope_uid_type</a> = uint64_t;  </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html#a1a46082e0f4e71387ed22d22840a43eb">GetModuleRedEnvelope</a>(</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;       <span class="keyword">const</span> guild_id_type guild_id,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;       GuildModuleRedEnvelope &amp;module_red_envelope);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html#af20f1f4af762652b230eac1a3308119c">SendGuildRedEnvelope</a>(</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;      <span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;      <span class="keyword">const</span> GuildRedEnvelopeBrief &amp;red_envelope_brief, <span class="keyword">const</span> std::string &amp;passwd,</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;      <a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html#af019b0c1493c1114cd335c3193a4100e">red_envelope_uid_type</a> &amp;red_envelope_uid,</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;      error_code &amp;ec);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html#aed728ce0fe7549f1cfd61eb5db0411bb">GrabGuildRedEnvelope</a>(</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      <span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;      <span class="keyword">const</span> <a class="code" href="classguild__service_1_1_guild_module_red_envelope_logic.html#af019b0c1493c1114cd335c3193a4100e">red_envelope_uid_type</a> red_envelope_uid,</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;      GuildRedEnvelopeBrief &amp;red_envelope_brief,</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      std::vector&lt;GuildRedEnvelopeGrabber&gt; &amp;grabber_list, error_code &amp;ec);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <span class="comment">// static bool IsGuildRedEnvelopeEmpty();</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;};</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}  <span class="comment">// namespace guild_service</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassguild__service_1_1_guild_module_red_envelope_logic_html_af019b0c1493c1114cd335c3193a4100e"><div class="ttname"><a href="classguild__service_1_1_guild_module_red_envelope_logic.html#af019b0c1493c1114cd335c3193a4100e">guild_service::GuildModuleRedEnvelopeLogic::red_envelope_uid_type</a></div><div class="ttdeci">uint64_t red_envelope_uid_type</div><div class="ttdoc">红包uid类型</div><div class="ttdef"><b>Definition:</b> guild_red_envelope_logic.h:40</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_module_red_envelope_logic_html"><div class="ttname"><a href="classguild__service_1_1_guild_module_red_envelope_logic.html">guild_service::GuildModuleRedEnvelopeLogic</a></div><div class="ttdoc">公会成员模块逻辑类</div><div class="ttdef"><b>Definition:</b> guild_red_envelope_logic.h:38</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_module_red_envelope_logic_html_af20f1f4af762652b230eac1a3308119c"><div class="ttname"><a href="classguild__service_1_1_guild_module_red_envelope_logic.html#af20f1f4af762652b230eac1a3308119c">guild_service::GuildModuleRedEnvelopeLogic::SendGuildRedEnvelope</a></div><div class="ttdeci">static bool SendGuildRedEnvelope(const role_uuid_type role_uuid, const GuildRedEnvelopeBrief &amp;red_envelope_brief, const std::string &amp;passwd, red_envelope_uid_type &amp;red_envelope_uid, error_code &amp;ec)</div><div class="ttdoc">发送公会红包</div><div class="ttdef"><b>Definition:</b> guild_red_envelope_logic.cpp:35</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_module_red_envelope_logic_html_aed728ce0fe7549f1cfd61eb5db0411bb"><div class="ttname"><a href="classguild__service_1_1_guild_module_red_envelope_logic.html#aed728ce0fe7549f1cfd61eb5db0411bb">guild_service::GuildModuleRedEnvelopeLogic::GrabGuildRedEnvelope</a></div><div class="ttdeci">static bool GrabGuildRedEnvelope(const role_uuid_type role_uuid, const red_envelope_uid_type red_envelope_uid, GuildRedEnvelopeBrief &amp;red_envelope_brief, std::vector&lt; GuildRedEnvelopeGrabber &gt; &amp;grabber_list, error_code &amp;ec)</div><div class="ttdoc">抢公会红包</div><div class="ttdef"><b>Definition:</b> guild_red_envelope_logic.cpp:95</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_module_red_envelope_logic_html_a1a46082e0f4e71387ed22d22840a43eb"><div class="ttname"><a href="classguild__service_1_1_guild_module_red_envelope_logic.html#a1a46082e0f4e71387ed22d22840a43eb">guild_service::GuildModuleRedEnvelopeLogic::GetModuleRedEnvelope</a></div><div class="ttdeci">static bool GetModuleRedEnvelope(const guild_id_type guild_id, GuildModuleRedEnvelope &amp;module_red_envelope)</div><div class="ttdoc">获取公会红包模块</div><div class="ttdef"><b>Definition:</b> guild_red_envelope_logic.cpp:28</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
